<%--
 *  File:    DefaultTaskAdvancedCondition.jsp
 *  @Author: KentZhong
 *  Date:    2008-11-20 17:42
 *
 *  Copyright (C) 2000 - 2001 Oval Technologies, Inc.
 *  All rights reserved.
 *
 *  This software is the confidential and proprietary information of Oval
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>

<%@ include file="/inc/SessionTimeout.inc"%>
<%@ page language="java" %>
<%@ page import="java.util.*" %>
<%@ page import="org.apache.log4j.Category" %>

<%@ page contentType = "text/html;charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/PageFlow.tld" prefix="PageFlow" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/oval-tag.tld" prefix="oval" %>
<%@ taglib uri="/WEB-INF/custom.tld" prefix="custom" %>
<%
  //init param
  Category cat = Category.getInstance("jsp.DefaultTaskAdvancedCondition");
 String strModuleName = "BIEE";  
	String privilegeCode = "Z0704,L601"; 
%>



<%
  HashMap userInfo = (HashMap)session.getAttribute("userinfo");
 

%>
<% //--------------------------------------  include files list --%>
<%@ include file="/inc/Security.inc" %>
<%@ include file="/inc/PageDefault.inc" %>

<html>
<head>
<title></title>
<PageFlow:CheckPageFlow pageName="p_defaulttaskadvancedcond"/>
<%@ include file="/inc/InitEdit.inc" %>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../css/<%= strLanguageCode %>/main.css" type="text/css">
<%@ include file="/inc/SummaryDivision.inc" %>
<script language="JavaScript" src="../js/FuncLib.js"></script>
<script>
function page_done()
{
  if(isEmpty(condetailaddform.script.value))
  {
    alert("<%=message.getMessageDesc("VALUE_NOT_NULL",label.getLabelName("L_Script"))%>");
    return;
  }
    
	document.condetailaddform.actionname.value = "done";
	document.condetailaddform.submit();
}
function page_delete()
{
  if(isEmpty(condetailaddform.taskadvconditionid.value))
  {
     alert("<%=message.getMessageDesc("P_PLEASE_SAVE")%>");
      return;
  }
  document.condetailaddform.actionname.value = "delete";
	document.condetailaddform.submit();
  
}
</script>
</head>

<body>

<table width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td colspan="2" class="summary_top"></td>
  </tr>
  <tr>
    <td colspan="2"><img src="../images/<%= strLanguageCode %>/quote.gif" width="16" height="11">
     <%= label.getLabelName("L_AdvancedCond") %><%= label.getLabelName("L_Colon") %></td>
  </tr>
</table>
<table width="100%" cellspacing="0" border="0" cellpadding="0">
  <form name="condetailaddform" method="post" action="../Dispatcher" target="_self">
			   <input type="hidden" name="pagename" value="p_defaulttaskadvancedcond">
			   <input type="hidden" name="actionname">
				 <custom:hidden property="defaulttaskid"/>
				   <custom:hidden property="taskadvconditionid" name="taskadvancedcondinfo"/>
				  
        
  <tr>
    <td>
      <table width="100%" border="1" cellpadding="1" bordercolorlight="#999999" bordercolordark="#FFFFFF" cellspacing="0" align="center">
        
        <tr>
          <td class="need"><%= label.getLabelName("L_Script") %><%= label.getLabelName("L_Colon") %></td>
          <td>
           
              <custom:textarea  name="taskadvancedcondinfo" property="script" cols="60" rows="5"/>
          </td>
        </tr>
        <tr>
          <td class="td-text"><%= label.getLabelName("L_Comment") %><%= label.getLabelName("L_Colon") %></td>
          <td>
            <custom:textarea  name="taskadvancedcondinfo" property="comments" cols="60" rows="5"/>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td class="summary_top"></td>
  </tr>
  <tr>
    <td class="td_center">
      <a onclick="page_done()"><custom:button type="1" label="L_Finish" imgsrc="finish.gif" border="0" style="width:60"/></a>
      <a onclick="page_delete()"><custom:button type="1" label="L_Delete" imgsrc="finish.gif" border="0" style="width:60"/></a>  
    </td>  
  </tr>
  <tr>
    <td class="summary_top"></td>
  </tr>
 </form>
</table>
</body>
</html>


